package com.mathassistant.client.service;

import java.util.ArrayList;

import com.google.gwt.user.client.rpc.AsyncCallback;
import com.mathassistant.shared.TopicDTO;


public interface TopicServiceAsync {

	void createTopic(TopicDTO topic, AsyncCallback<Void> callback);

	void deleteTopic(String idTopic, AsyncCallback<Void> callback);

	void deleteTopic(TopicDTO topicDTO, AsyncCallback<Void> callback);

	void getTopic(String type, AsyncCallback<ArrayList<TopicDTO>> callback);

	void getTopics(AsyncCallback<ArrayList<TopicDTO>> callback);

	void updateTopic(TopicDTO topicDTO, AsyncCallback<Void> callback);

	void updateTopic(String idTopic, String changeContent,
			AsyncCallback<Void> callback);

	void getTopics(String area, String contentType,
			AsyncCallback<ArrayList<TopicDTO>> callback);

}
